<template>
  <h1>App</h1>
  <A />
</template>

<script lang="ts">
import A from './A.vue';

export default {
  name: 'App',
  components: {
    A,
  },
  //给后代组件提供数据
  provide: {
    num: 99,
    age: 18,
  },
  mounted() {
    console.log(this);
  },
};
</script>
<style scoped></style>
